#include "student.h"

student::student()
{

}
//输出信息
void student::showInfo(){
    cout <<  left << setw(10) << num;
    cout <<  left << setw(12) << name;
    cout <<  left << setw(12) << age;
    cout <<  left << setw(12) << gender;
    cout <<  left << setw(16) << addr << endl;
}
//输出属性名字
void student::showHeader(){
    cout <<  left << setw(4) << "No.";
    cout <<  left << setw(12) << "学号";
    cout <<  left << setw(14) << "姓名";
    cout <<  left << setw(14) << "年龄";
    cout <<  left << setw(14) << "性别";
    cout <<  left << setw(16) << "住址" << endl;
}
